package com.dianban.service.impl;

import com.dianban.dao.StorePrincipalDao;
import com.dianban.entity.StorePrincipal;
import com.dianban.service.StorePrincipalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class StorePrincipalServiceImpl implements StorePrincipalService {

    @Autowired
    private StorePrincipalDao storePrincipalDao;

    @Override
    public StorePrincipal findByStoreId(Long storeId) {
        return storePrincipalDao.findByStoreId(storeId);
    }
}
